package Mangos::DB::Realmd::RealmList;

use strict;

use base qw(Mangos::DB::Realmd);

__PACKAGE__->meta->setup
(
    table   => 'realmlist',

    columns => 
    [
        id                   => { type => 'integer', not_null => 1 },
        name                 => { type => 'varchar', default => '', length => 32, not_null => 1 },
        address              => { type => 'varchar', default => '127.0.0.1', length => 32, not_null => 1 },
        port                 => { type => 'integer', default => 8085, not_null => 1 },
        icon                 => { type => 'integer', default => '0', not_null => 1 },
        color                => { type => 'integer', default => 2, not_null => 1 },
        timezone             => { type => 'integer', default => '0', not_null => 1 },
        allowedSecurityLevel => { type => 'integer', default => '0', not_null => 1 },
        population           => { type => 'float', default => '0', not_null => 1, precision => 32 },
        realmbuilds          => { type => 'varchar', default => '', length => 64, not_null => 1 },
    ],

    primary_key_columns => [ 'id' ],

    unique_key => [ 'name' ],
);

1;
